
<div class="widget">
    <div class="whead"><h6>
    LISTADO DE TRANSFERENCIAS
    </h6><div class="clear"></div></div>
    
    <div class="shownpars">
    
    <div >
    <table cellpadding="0" cellspacing="0" border="0" class="dTable">
            <thead>
                    <tr>
                        <th>Codigo</th>
                        <th>Sucursal</th>
                        <th>Sucursal Transferida</th>
                        <th>Fecha</th>
                        <th>Accion</th>
                    </tr>
                </thead>
            <tbody>
                    <?php  $i = 0; $total = 0.00; ?>
                <?php if(!empty($ventas)):?>    
                <?php foreach ($ventas as $ven):$i++;  ?>
                
                <tr>
                    <td><?php echo $ven['Ventasproducto']['codigoventa']; ?></td>
                    <td><?php echo $ven['Sucursale']['nombre']; ?></td>
                    <td><?php echo $ven['Transferida']['nombre']; ?></td>
                    <td><?php echo $ven['Ventasproducto']['created']; ?></td>
                    <td>
                    <?php echo $this->Html->link('Nota de Impresion',array('action' => 'notatransferencia',$ven['Ventasproducto']['id'],1),array('class' => 'buttonS bGreyish'));?>
                    <?php echo $this->Html->link('Eliminar',array('action' => 'cancelaventa',$ven['Ventasproducto']['id'],1),array('class' => 'buttonS bRed'));?>
                    </td>
                    
                </tr>
                
            <?php endforeach; ?>
            <?php endif;?>
                </tbody>
        </table>
        
    </div>
        
    </div> 
</div>

<?php echo $this->Js->writeBuffer(); ?>